/* *****************************************************************************
 * JFab (http://code.google.com/p/jfab)
 * Copyright (c) 2011 JFab.org
 * Admin jfab@jeffreythompson.net
 *
 * See the file "LICENSE.txt" for information on usage and redistribution of
 * this file, and for a DISCLAIMER OF ALL WARRANTIES.
 * *****************************************************************************/


package org.jfab.core.collection;

import org.jfab.core.model.CGType;

import java.util.ArrayList;
import java.util.Collection;


/**
 * Provides a code generator type list.
 */
public class CGTypeList extends CGList<CGType>
{
    /**
     * Construct this object.
     */
    public CGTypeList()
    {
        super(new ArrayList<CGType>());
    }

    /**
     * Construct this object with the given parameter.
     *
     * @param  types  Types.
     */
    public CGTypeList(Collection<CGType> types)
    {
        this();

        getList().addAll(types);
    }
}
